package com.runtime.hongyunmanage.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class Products {

  private Long productId;
  private Long categoryId;
  private String productNumber;
  private String productName;
  private BigDecimal price;
  private Integer stock;
  private Integer stockAlertThreshold;
  private Integer isPublished;
  private Date createdAt;
  private Date updatedAt;
  // 关联 Productdetails 表的详细信息
  @TableField(exist = false)
  private Productdetails productDetails;

  // 关联 Productimages 表的图片信息
  @TableField(exist = false)
  private List<ProductImage> productImages;
}
